<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="font"></div>
<div id="buttom" style="display: none"><button>喜欢</button><button>不喜欢</button></div>
<script>
     var arr=[
        '测','试','字','体',',','一','字','一','字','输','出'
     ];
     var num=arr.length-1;
     var i=0;
     var font=document.getElementById('font');
     var button = document.getElementById('buttom')
     var time= setInterval(function () {

           font.innerHTML+=arr[i];
           if (arr[i]==','){
               font.innerHTML+="<br/>";
           }
           if(i==num){
               button.style.display='block';
               clearInterval(time)
           }
           i++;
      },1000)
    </script>
</body>
</html>